package se.webbzon.boltzmann.editor.component.sequence.factory;

import se.webbzon.boltzmann.game.object.dialogue.DialogueBackground;
import se.webbzon.boltzmann.game.object.dialogue.layout.IntegerDialogueLayout;
import se.webbzon.boltzmann.game.sequence.builder.AbstractSequenceRow;
import se.webbzon.boltzmann.game.sequence.builder.SequenceBuilder;
import se.webbzon.boltzmann.game.sequence.builder.dialogue.IntegerDialogueRow;

public class IntegerDialogueRowFactory extends AbstractSequenceRowFactory {
	
	// The layout used to create integer dialogue rows
	private final IntegerDialogueLayout layout;

	/*============================================================
	Constructors
	============================================================*/
	
	public IntegerDialogueRowFactory(IntegerDialogueLayout layout) {
		super(IntegerDialogueRow.name);
		this.layout = layout;
	}
	
	/*============================================================
	Constructors
	============================================================*/

	@Override public AbstractSequenceRow makeNew(SequenceBuilder builder) {
		return new IntegerDialogueRow(	builder,
										layout,
										DialogueBackground.NORMAL,
										"Undefined text.",
										"Input number:","units",
										"0","100");
	}

}
